package service.impl;



import dao.WlUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import pojo.WlUser;
import service.WlUserService;

import javax.annotation.Resource;
import java.util.List;
@Service("wlUserService")
public class WlUserServiceImpl implements WlUserService {

    @Autowired
    @Qualifier(value = "wlUserMapper")
    WlUserMapper wlUserMapper;

    public WlUserMapper getWlUserMapper() {
        return wlUserMapper;
    }

    public void setWlUserMapper(WlUserMapper wlUserMapper) {
        this.wlUserMapper = wlUserMapper;
    }

    public List<WlUser> getall() {
        return wlUserMapper.getall();
    }

    public int deleteByPrimaryKey(String id) {
        return wlUserMapper.deleteByPrimaryKey(id);
    }

    public int insert(WlUser record) {
        return wlUserMapper.insert(record);
    }

    public int insertSelective(WlUser record) {
        return wlUserMapper.insertSelective(record);
    }

    public WlUser selectByPrimaryKey(String id) {
        return wlUserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(WlUser record) {
        return wlUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(String record) {
        return wlUserMapper.updateByPrimaryKey(record);
}

    public List<WlUser> selectAll(int index) {

        System.out.print("service层 selectAll");
        return wlUserMapper.selectAll(index);
    }

    public int count() {
        System.out.print("service层 count");
        return wlUserMapper.count();
    }
}
